<core:WRAP file="pub/layout.html"  placeholder="Content">

<script>
	function Login(){
		document.forms[0].submit();
	}
</script>

<td class="mini" width="100%" valign="top" align="left" >
    		<table class="topmenu" border="0"  cellpadding="1" cellspacing="0" width="100%">
				<tr class="topmenu" align="center">
					<td style="padding:5; padding-left:10;">
						<a href="index.htm" class="whitelink">Home</a>
					</td>
					<td style="padding:5; padding-left:10;">
						<a href="register.htm" class="whitelink">Register</a>
					</td>
					<td style="padding:5; padding-left:10;">
						<a href="{$faq_url}" class="whitelink">Member FAQ</a>
					</td>
					<td style="padding:5; padding-left:10;">
						<a href="login.htm" class="whitelink">Login</a>
					</td>
					<td style="padding:5; padding-left:10;">
						<a href="myprofile/index.htm" class="whitelink">My Profile</a>
					</td>
				</tr>
            </table>
            <hr size="4" class="login">

    <table border="0"  cellpadding="0" cellspacing="0" width="100%">
	<tr><td><div class="lightblue">LOGIN</div></td></tr>
	<tr><td class="textlogin" style="padding-left:15;">
		<b>&nbsp; Sign in here</b> if you already have a username and password
	</td></tr>
	<core:optional for='action'>
		<tr><td class="textlogin" style="color:red;font-size:12;padding-left:15;"><br>
		&nbsp;&nbsp;You entered wrong username or password. Please, try again.
		</td></tr>
	</core:optional>
	<core:optional for='unactivated'>
	<tr><td class="textlogin" style="color:red;font-size:12;padding-left:15;"><br>
	You account was temporary suspended by the administrator.
	</td></tr>
	</core:optional>

	<tr>
		<td>
		<form id="login_form" action="login.htm" method="POST">
			<input type="hidden" name='login_action' value='action'/>
			<table>
			<tr>
				<td class="textlogin"><br>&nbsp;&nbsp;&nbsp;Username:&nbsp;</td>
				<td><br><input class="login" type="text" name="username" size="40"></td>
			</tr>
			<tr>
				<td class="textlogin">&nbsp;&nbsp;&nbsp;Password:&nbsp;</td>
				<td><input class="login" type="password" name="password" size="40">
				</td>
				<td>
				<img border="0" src="/{$#app_name}/images/login.gif" onclick="Login();">
				</td>
			</tr>
			</table>
		</form>
		</td>
	</tr>
	<tr>
		<td>
		<table>
			<tr>
				<td rowspan="2">
					<br><img src="/{$#app_name}/images/info_ico.jpg">
				</td>
				<td class="textlogin">
					<br>If not click here <a class="linklogin" href="register.htm">
					to register</a> (for free) or
					<a class="linklogin" href="subscribe.htm">subscribe</a>
				</td>
			</tr>
			<tr>
				<td class="textlogin">Forgot your password - click
					<a class="linklogin" href="pswdreminder.htm"> here <a>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr><td><hr size="4" class="login"></td></tr>
	<tr>
		<td>
			<table>
				<tr>
					<td><img src="/{$#app_name}/images/info_ico.jpg">
					</td>
					<td>&nbsp;
						<img src="/{$#app_name}/images/notasubscriber.gif">
					</td>
					<td>&nbsp;
						<a href="subscribe.htm">
							<img src="/{$#app_name}/images/subscribe.gif" border="0">
						</a>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr><td><hr size="4" class="login"></td></tr>
	</table>
</td>
